package orm;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * AbstractTest entity provides the base persistence definition of the Test
 * entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractTest implements java.io.Serializable {

	// Fields

	private long testid;
	private Course course;
	private String testname;
	private Date starttime;
	private Date endtime;
	private int testtime;
	private Set takeexams = new HashSet(0);
	private Set testtemplates = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractTest() {
	}

	/** minimal constructor */
	public AbstractTest(String testname, Date starttime, Date endtime) {
		this.testname = testname;
		this.starttime = starttime;
		this.endtime = endtime;
	}

	/** full constructor */
	public AbstractTest(Course course, String testname, Date starttime,
			Date endtime, Set takeexams, Set testtemplates) {
		this.course = course;
		this.testname = testname;
		this.starttime = starttime;
		this.endtime = endtime;
		this.takeexams = takeexams;
		this.testtemplates = testtemplates;
	}

	// Property accessors

	public long getTestid() {
		return this.testid;
	}

	public void setTestid(long testid) {
		this.testid = testid;
	}

	public Course getCourse() {
		return this.course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public String getTestname() {
		return this.testname;
	}

	public void setTestname(String testname) {
		this.testname = testname;
	}

	public Date getStarttime() {
		return this.starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}

	public Date getEndtime() {
		return this.endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public void setTesttime(int testtime) {
		this.testtime = testtime;
	}

	public int getTesttime() {
		return testtime;
	}

	public Set getTakeexams() {
		return this.takeexams;
	}

	public void setTakeexams(Set takeexams) {
		this.takeexams = takeexams;
	}

	public Set getTesttemplates() {
		return this.testtemplates;
	}

	public void setTesttemplates(Set testtemplates) {
		this.testtemplates = testtemplates;
	}

}